<%@page import="business.bl.CandidatoBL"%>
<%@page import="java.util.ResourceBundle"%>
<%@page import="java.util.Locale"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%

ResourceBundle rb= ResourceBundle.getBundle("bundle");


CandidatoBL candidatoBL = new CandidatoBL();


Integer newCVCounter=candidatoBL.getSimpleNewCVElements();

System.out.println("Nuovi CV: "+newCVCounter);

pageContext.setAttribute("newCVCounter", newCVCounter);

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="./style/main.css" />
	<link rel="stylesheet" type="text/css" href="./style/calendar.css" />
	<!--[if IE]>
        <link rel="stylesheet" type="text/css" href="./style/main-ie.css" />
    <![endif]-->
	<script src="./js/main.js" type="text/javascript" ></script>
	<script src="./js/date.format.js" type="text/javascript" ></script>
	<script src="./js/calendar.js" type="text/javascript" ></script>
	
	
	<script type="text/javascript">
		window.onload = function () {


		};
 	</script>
	
<title><%=rb.getString("INDEX_TITLE")%></title>
</head>
<body >	
	<div id="main">
		<div id="head">
			<div id="logo">
				<h1>
					
					<%=rb.getString("INDEX_LOGO")%>
						
				</h1>
				
			</div>
			
		</div>
		<div id="left">
			<ul>
				<li><a href="./">Home</a></li>
				<li><a href="javascript:cleanDiv('news');getTarget('candidato.list','target','','ListaCandidature')"><%=rb.getString("INDEX_CANDIDACIES")%></a></li>
				<li><a href="javascript:cleanDiv('news');getTarget('candidato.create','target','','Candidato');"><%=rb.getString("INDEX_NEW_CANDIDACY")%></a></li></li>
				
				
			</ul>
			<form method="POST" action='./Logout' style="display:inline;" id="logout">
						<input type="submit" value="Logout" name="logout" id="logout" />
			</form>
		</div>
		<div id="right">
			<div id="target">
				<div id="welcome">
					<dl>
						<dt>Pannello di Controllo</dt>
						<dd>
							<img class="img" src="./img/career_main_resized.jpg" />
						</dd>
						<dd>
							<%=rb.getString("INDEX_TARGET_P1")%>
						</dd>
						<dd>
							<%=rb.getString("INDEX_TARGET_P2")%>
						</dd>
						
						<dd>
							<div id="button1">
								<dl>
									<dt><%=rb.getString("INDEX_BUTTON1_TITLE")%></dt>
									<dd>
									
										<a 
											href="javascript:getTarget('candidato.create','target','','Candidato');"
											title="<%=rb.getString("TOOLTIP_NEW_CV")%>"
										>
											<img class="img" src="./img/writeCV.jpg" />
										</a>
									</dd>
									<dd><%=rb.getString("INDEX_BUTTON1_LABEL")%></dd>
								</dl>
							</div>
						</dd>
						<dd>
							<div id="button2">
								<dl>
									<dt><%=rb.getString("INDEX_BUTTON2_TITLE")%></dt>
									<dd>
										<a 
											href="javascript:getTarget('candidato.list','target','','ListaCandidature')"
											title="<%=rb.getString("TOOLTIP_LIST_CV")%>"
											
										>
											<img class="img" src="./img/business_list_resized.jpg" />
										</a>
									
									</dd>
									<dd><%=rb.getString("INDEX_BUTTON2_LABEL")%></dd>
								</dl>
							</div>
						</dd>
						<dd>
							<div id="button3">
								<tags:incomingCandidature newCVCounter="${newCVCounter}" />
							</div>
						</dd>
						
					</dl>
				</div>
			</div>
			<div id="news">
			
			</div>
		</div>
		<div id="tail">
			<div id="copyright">
				<span>
					<%=rb.getString("INDEX_COPYRIGHT")%>
				</span>
			</div>
		</div>
	</div>
	
	
</body>
</html>